/**
 * require.js模块配置
 * 作者：Greedwind
 */

//配置
require.config({
	baseUrl: '/static/js',
	map: { //map告诉RequireJS在任何模块之前，都先载入这个css模块
	    '*': {
	        css: 'require-css'
	    }
	},
	paths: {
        jquery: 'jquery.min',
        bootstrap: 'bootstrap.min',
        ztree: 'plugins/ztree/jquery.ztree.all.min',
        bootstrapTable: 'plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min', //'plugins/bootstrap-table/bootstrap-table.min',
        bootstrapTableMobile: 'plugins/bootstrap-table/bootstrap-table-mobile.min',
        bootstrapValidator: 'plugins/validate/bootstrapValidator.min',
        bootstrapTreeTable: 'plugins/bootstrap-treetable/bootstrap-treetable',
        layer: 'plugins/layer/layer',
        chosen: 'plugins/chosen/chosen.jquery',
        iCheck: 'plugins/iCheck/icheck.min',
        laydate: 'plugins/laydate/laydate-5.0.5.src',
        webuploader: 'plugins/webuploader/webuploader.min',
        bootstrapDatePicker: 'plugins/jqGrid/bootstrap-datepicker',
        jqGrid: 'plugins/jqGrid/trirand/src/jquery.jqGrid',	//'plugins/jqGrid/trirand/jquery.jqGrid.min',
        jqGridLocale: 'plugins/jqGrid/trirand/i18n/grid.locale-cn',        
        exportpdf: 'plugins/pdfmake/pdfmake-0.1.36.min',
        exportexcel: 'plugins/jszip/jszip.min',
        apputils: 'common/Feng',
        gridUtils: 'gridutils',
        jqueryUI: 'plugins/jqGrid/jquery-ui.min',
        //jqUImultiselect: 'plugins/jqGrid/jquery-ui.min',
	},
    shim: {
    	jquery:{
    		exports: 'jQuery'
    	},
    	bootstrap: {
            deps: ['jquery',
                'css!../css/bootstrap.min.css',
                'css!../css/font-awesome.css'
            ]
        },
        ztree: {
            deps: ['jquery',
            	'css!../css/plugins/ztree/zTreeStyle.css'
            ]
        },
        bootstrapTable: {
            deps: [
            	'jquery','bootstrap',
            	'plugins/bootstrap-table/bootstrap-table.min',
                'css!../css/plugins/bootstrap-table/bootstrap-table.min.css'
            ]
        },
        bootstrapTableMobile: {
            deps: ['bootstrapTable']
        },
        bootstrapValidator: {
            deps: ['bootstrap',
            	'css!../css/plugins/validate/bootstrapValidator.min.css',
            ]
        },
        bootstrapTreeTable: {
            deps: ['bootstrap','bootstrapTable',
            	'css!../css/plugins/bootstrap-treetable/bootstrap-treetable.css'
            ]
        },
        layer: {
            deps: [
            	//'laydate',
            	'css!plugins/layer/theme/default/layer.css'
            ],
        	//exports: 'layer'
        },
        laydate: {
            deps: [
            	'css!plugins/laydate/theme/default/laydate.css'
            ],
        	exports: 'laydate'
        },
        chosen: {
            deps: ['jquery',
            	'css!../css/plugins/chosen/chosen.css'	
            ]
        },
        iCheck: {
            deps: ['jquery',
            	'css!../css/plugins/iCheck/custom.css'
            ]
        },
        webuploader: {
            deps: ['jquery',
            	'css!..、css/plugins/webuploader/webuploader.css'
            ]
        },
        bootstrapDatePicker: {
            deps: ['bootstrap',
            	'plugins/jqGrid/bootstrap3-typeahead',
            	'css!../css/plugins/jqGrid/bootstrap-datepicker.css'
            ]
        },
        jqGrid:{
            deps: ['jquery','bootstrap',
            	'bootstrapDatePicker',
            	'jqGridLocale',
            	'gridUtils',
            	'css!../css/plugins/jqGrid/trirand/ui.jqgrid-bootstrap.css'
            ]
        },
        jqGridLocale:{
            deps:['jquery']
        },            
        exportpdf: {
            deps: ['jqGrid',
            	'plugins/pdfmake/vfs_fonts-0.1.36'
            ]
        },        
        jqueryUI: {
            deps: ['jquery',
            	'css!../css/plugins/jqGrid/jquery-ui.css',
        		'css!../css/plugins/jqGrid/ui.multiselect.css',
            ]
        }, 
        exportexcel: {
            deps: ['jqGrid']
        },
        apputils: {
            deps: ['jquery',
            	'common/ajax-object',
            	'common/bootstrap-table-object',
            	'common/tree-table-object',
            	'common/web-upload-object',
            	'common/ztree-object',
            	'css!../css/style.css',
            	'css!../css/_fstyle.css',
            ]
        },
        
    }	
});

